package com.ease.business.hellobuddy.vo;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

/**
 * 
 * @author nathanleewei
 * 
 */
// @XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = { "id", "name", "code", "version", "memo", "myBuddy" })
public class Buddy implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 5634688093311377158L;

	/** id */
	protected long id;

	/** name */
	protected String name;

	/** code */
	protected String code;

	/** version */
	protected long version;

	/** memo */
	protected String memo;

	/**  */
	private Buddy myBuddy;

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the version
	 */
	public long getVersion() {
		return version;
	}

	/**
	 * @param version
	 *            the version to set
	 */
	public void setVersion(long version) {
		this.version = version;
	}

	/**
	 * @return the memo
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * @param memo
	 *            the memo to set
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	/**
	 * @return the myBuddy
	 */
	public Buddy getMyBuddy() {
		return myBuddy;
	}

	/**
	 * @param myBuddy
	 *            the myBuddy to set
	 */
	public void setMyBuddy(Buddy myBuddy) {
		this.myBuddy = myBuddy;
	}

}
